From: Owen Taylor Date: Sun, 2 Nov 2008 04:18:36 +0000 (+0000) Subject: Pass the right number of arguments to exit() X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~11618 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0a2a65e8105a857a6fb628455df9866cd1a5a1cf;p=gnome-shell.git Pass the right number of arguments to exit() When using gdb to quit the panel, pass the right number of arguments to exit(), so that gdb calls it instead of erroring out. svn path=/trunk/; revision=22 --- diff --git a/scripts/start-replace b/scripts/start-replace index e28c9e8df..2bf5f1c69 100755 --- a/scripts/start-replace +++ b/scripts/start-replace @@ -17,7 +17,7 @@ try: for pid in pids: subprocess.call(["gdb", "-batch-silent", "-ex", "call panel_session_do_not_restart()", - "-ex", "call exit()", + "-ex", "call exit(0)", "-p", pid], stdout=devnull, stderr=devnull) devnull.close()